package com.copa.module.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * @author copa
 * @createDate 2021-02-26
 * @function   t_trade表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_trade")
@ApiModel(value="Trade对象", description="")
@Builder
public class TradeEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "今日新增总订单量")
    @TableField("add_total_order_num")
    private Long addTotalOrderNum;

    @ApiModelProperty(value = "今日新增小订单量")
    @TableField("add_order_goods_num")
    private Long addOrderGoodsNum;

    @ApiModelProperty(value = "今日已支付订单")
    @TableField("add_pay_total_order_num")
    private Long addPayTotalOrderNum;

    @ApiModelProperty(value = "今日已支付小订单")
    @TableField("add_pay_order_goods_num")
    private Long addPayOrderGoodsNum;

    @ApiModelProperty(value = "今日已退款小订单数")
    @TableField("refund_order_goods_num")
    private Long refundOrderGoodsNum;

    @ApiModelProperty(value = "今日盈利")
    @TableField("income")
    private BigDecimal income;

    @ApiModelProperty(value = "今日退款")
    @TableField("refund")
    private BigDecimal refund;

    @ApiModelProperty(value = "今日售出货物总件数")
    @TableField("add_sale_goods_num")
    private Long addSaleGoodsNum;

    @ApiModelProperty(value = "今日退款货物总件数")
    @TableField("refund_sale_goods_num")
    private Long refundSaleGoodsNum;

    @ApiModelProperty(value = "是否删除 0否 1是")
    @TableField("is_delete")
    private Integer isDelete;


    public static final String ADD_TOTAL_ORDER_NUM = "add_total_order_num";

    public static final String ADD_ORDER_GOODS_NUM = "add_order_goods_num";

    public static final String ADD_PAY_TOTAL_ORDER_NUM = "add_pay_total_order_num";

    public static final String ADD_PAY_ORDER_GOODS_NUM = "add_pay_order_goods_num";

    public static final String REFUND_ORDER_GOODS_NUM = "refund_order_goods_num";

    public static final String INCOME = "income";

    public static final String REFUND = "refund";

    public static final String ADD_SALE_GOODS_NUM = "add_sale_goods_num";

    public static final String REFUND_SALE_GOODS_NUM = "refund_sale_goods_num";

    public static final String IS_DELETE = "is_delete";


}
